
/* Layout */
import Layout from '@/layout'

// 导出 baseRoutes
const baseRoutes = [
    {
        path: "/",
        redirect: "/home"
    },
    {
        path: "/:pathMatch(.*)*",
        redirect: "/home",
        // component: () => import('@/views/error/404'),
        hidden: true
    },
    {
        path: '/home',
        name: "home",
        component: () => import("../views/home/index.vue")
    },
    {
        path: '/directive',
        name: "Directive",
        component: () => import("../views/scroll/scroll-directive.vue")
    },
    {
        path: '/animation',
        name: "Animation",
        component: () => import("../views/scroll/scroll-animation.vue")
    },
    {
        path: '/echarts',
        name: "Echarts",
        component: () => import("../views/echarts/echarts.vue")
    },
    {
        path: '/contextmenu',
        name: "contextmenu",
        component: () => import("@/views/menu/contextmenu.vue")
    },
    {
        path: '/element2',
        name: "Element2",
        component: () => import("../views/element-plus/index.vue")
    },
    {
        path: '/draggable',
        name: "draggable",
        component: () => import("../views/draggable/draggable.vue")
    },
    {
        path: '/i18n',
        name: "i18n",
        component: () => import("../views/i18n/index.vue")
    },
    {
        path: '/gs',
        component: Layout,
        // redirect: '/index',
        hidden: true,
        children: [
            {
                path: 'element',
                name: "Element",
                component: () => import("../views/element-plus/index.vue")
            },
            {
                path: 'counter',
                name: "counter",
                component: () => import("../views/counter/index.vue")
            },
        ]
    }
]
export default baseRoutes
